ISlave.WriteRegister method

Writes data into an EtherCAT slave's register.

Namespace: IntervalZero.KINGSTAR.Base.Class

Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
IKsCommand WriteRegister(
       int offset,
       byte[] data
)
Function WriteRegister(
       offset As Integer,
       data As Byte()
) As IKsCommand

Parameters

offset

Type: int

The offset of the register to write.

 

data

Type: byte[]

The pointer to the buffer containing the data to write.

Return value

Type: IKsCommand

Returns the states of a method.

Remarks

Used to update a slave register during slave development.

IMPORTANT:  This method is meant for slave development only. Otherwise, do not use it.

NOTE:  This method uses a slow access method that should not be called in the cyclic callback, or it causes a deadlock.

Usable EtherCAT states

ecatInit, ecatPreOP, ecatSafeOP, ecatOP

See also

ISlave Interface

IntervalZero.KINGSTAR.Base.Class Namespace